package com.gp.ssmplus.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gp.ssmplus.base.core.mybatis.base.entity.AbstractEntity;
import com.gp.ssmplus.base.core.mybatis.common.TableAlias;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author gp
 * @since 2020-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableAlias("GpAccount")
@TableName("gp_account")
public class GpAccount extends AbstractEntity {

    private static final long serialVersionUID=1L;

    @TableId("accountId")
    private Long accountId;

    @TableField("accountName")
    private String accountName;

    private String mobile;



    @Override
    protected Serializable pkVal() {
        return this.accountId;
    }

}
